%%%-------------------------------------------------------------------
%% @doc shield_test public API
%% @end
%%%-------------------------------------------------------------------

-module(shield_test).

-include("debug.hrl").

-export([run/0]).

run() ->
    ?trace("shield_words test begin."),
    shield_words:start(),

    ?trace("null string: ~ts", [shield_words:filter("")] ),
    ?trace("明天见: ~ts", [shield_words:filter("明天见")] ),
    ?trace("你: ~ts", [shield_words:filter("你")] ),
    ?trace("你好: ~ts", [shield_words:filter("你好")] ),
    ?trace("你好吗: ~ts", [shield_words:filter("你好吗")] ),
    ?trace("昨你好吗: ~ts", [shield_words:filter("昨你好吗")] ),
    ?trace("昨你好: ~ts", [shield_words:filter("昨你好")] ),
    ?trace("昨你: ~ts", [shield_words:filter("昨你")] ),
    ?trace("err input: ~ts", [shield_words:filter(false)] ),

    shield_words:stop(),
    ?trace("shield_words test end."),
    ok.

%% internal functions


